package com.zyf.heixiang.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zyf.heixiang.entity.OrderDetail;
import com.zyf.heixiang.entity.Orders;

import java.util.List;

/**
 * @author 24040
 * @name OrderService
 * @date 2022-08-01 11:47
 */
public interface OrderService extends IService<Orders> {
    /**
     * 用户下单
     * @param orders
     */
    public void submit(Orders orders);

    /**
     * 用户再来一单
     * @param ordersId
     */
    public boolean again(Long ordersId,Long userId);

    public List<OrderDetail> getOrderDetailListByOrderId(Long orderId);
}
